package com.oceanread.cn.entity;

import com.alibaba.fastjson.JSONObject;

public class UserTools {
    public JSONObject getinfo(User user){
        JSONObject userinfo=new JSONObject();
        userinfo.put("id",user.getId());
        userinfo.put("username",user.getUsername());
        userinfo.put("role",user.getRole());
        return userinfo;
    }
}
